Optimal. Leaf size=42 \[ \frac {a A \tan (c+d x)}{d}+a C x+\frac {A b \tanh ^{-1}(\sin (c+d x))}{d}+\frac {b C \sin (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {3032, 3023, 2735, 3770} \[ \frac {a A \tan (c+d x)}{d}+a C x+\frac {A b \tanh ^{-1}(\sin (c+d x))}{d}+\frac {b C \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2735
Rule 3023
Rule 3032
Rule 3770
Rubi steps
\begin {align*} \int (a+b \cos (c+d x)) \left (A+C \cos ^2(c+d x)\right ) \sec ^2(c+d x) \, dx &=\frac {a A \tan (c+d x)}{d}+\int \left (A b+a C \cos (c+d x)+b C \cos ^2(c+d x)\right ) \sec (c+d x) \, dx\\ &=\frac {b C \sin (c+d x)}{d}+\frac {a A \tan (c+d x)}{d}+\int (A b+a C \cos (c+d x)) \sec (c+d x) \, dx\\ &=a C x+\frac {b C \sin (c+d x)}{d}+\frac {a A \tan (c+d x)}{d}+(A b) \int \sec (c+d x) \, dx\\ &=a C x+\frac {A b \tanh ^{-1}(\sin (c+d x))}{d}+\frac {b C \sin (c+d x)}{d}+\frac {a A \tan (c+d x)}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 54, normalized size = 1.29 \[ \frac {a A \tan (c+d x)}{d}+a C x+\frac {A b \tanh ^{-1}(\sin (c+d x))}{d}+\frac {b C \sin (c) \cos (d x)}{d}+\frac {b C \cos (c) \sin (d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.44, size = 86, normalized size = 2.05 \[ \frac {2 \, C a d x \cos \left (d x + c\right ) + A b \cos \left (d x + c\right ) \log \left (\sin \left (d x + c\right ) + 1\right ) - A b \cos \left (d x + c\right ) \log \left (-\sin \left (d x + c\right ) + 1\right ) + 2 \, {\left (C b \cos \left (d x + c\right ) + A a\right )} \sin \left (d x + c\right )}{2 \, d \cos \left (d x + c\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.39, size = 117, normalized size = 2.79 \[ \frac {{\left (d x + c\right )} C a + A b \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right ) - A b \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right ) - \frac {2 \, {\left (A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - C b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + C b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 1}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.20, size = 57, normalized size = 1.36 \[ a C x +\frac {A b \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{d}+\frac {a A \tan \left (d x +c \right )}{d}+\frac {b C \sin \left (d x +c \right )}{d}+\frac {C a c}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 59, normalized size = 1.40 \[ \frac {2 \, {\left (d x + c\right )} C a + A b {\left (\log \left (\sin \left (d x + c\right ) + 1\right ) - \log \left (\sin \left (d x + c\right ) - 1\right )\right )} + 2 \, C b \sin \left (d x + c\right ) + 2 \, A a \tan \left (d x + c\right )}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.28, size = 91, normalized size = 2.17 \[ \frac {C\,b\,\sin \left (c+d\,x\right )}{d}+\frac {2\,A\,b\,\mathrm {atanh}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{d}+\frac {2\,C\,a\,\mathrm {atan}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{d}+\frac {A\,a\,\sin \left (c+d\,x\right )}{d\,\cos \left (c+d\,x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (A + C \cos ^{2}{\left (c + d x \right )}\right ) \left (a + b \cos {\left (c + d x \right )}\right ) \sec ^{2}{\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________